#include <bits/stdc++.h>

using namespace std;
const int MAXNUM = 100000008;
const int MOD = 100;
const int FILENUMS = 3;
const int SIZE = MAXNUM;
int arr[MAXNUM] = {0};
int main()
{
    memset(arr, 0, sizeof(arr));
    int maxnum = 0;
    fstream inputfile("test.in");
    fstream outputfile("test.out");
    int num;
    while (!inputfile.eof())
    {
        inputfile >> num;
        maxnum = max(maxnum, num);
        arr[num]++;
    }
    inputfile.close();
    int cnt = 0;
    int c = 0;
    for (int i = 0; i < maxnum; i++)
    {
        if (arr[i])
        {
            if ((++cnt) % MOD == 0)
            {
                cnt = 0;
                outputfile << i << endl;
                if ((++c) > 10)
                    break;
            }
        }
    }
    // system("pause");
    return 0;
}
